package redis

import (
	"WebFacade/log"
	"errors"
)

func internalPanic() {
	// 内部数据错误
}

var (
	errInternalData   = errors.New("redis internal data error")
	errRecordNotFound = errors.New("record not found")
)

func redisErrorLog(params map[string]interface{}, err error) error {
	chain := log.CreateLocationChainReverse(1)
	return log.ErrorLogWithLocation(log.ErrorDBRedis, chain, params, err)
}

// redis内部数据错误
func innerDataErrorLog(params map[string]interface{}, err error) error {
	chain := log.CreateLocationChainReverse(1)
	return log.ErrorLogWithLocation(log.ErrorDataFormat, chain, params, err)
}
